#include "mainwindow2.h"
#include "ui_mainwindow2.h"

MainWindow2::MainWindow2(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow2)
{
    ui->setupUi(this);
    //去掉标题栏
    this->setGeometry(50,50,600,600);
    this->setWindowFlags(Qt::FramelessWindowHint);
    //设置背景透明色
    this->setAttribute(Qt::WA_TranslucentBackground,true);
    //窗体添加样式，样式为css样式表。
    //background-image:urlbian添加图片
    //background-repeat:not-repeat不平铺
    //this->setStyleSheet("background-image:url(:/new/prefix1/b); background-repeat:no-repeat;");
}

MainWindow2::~MainWindow2()
{
    delete ui;
}
